import Vue from 'vue';
import Vuex from 'vuex';
import judgeSystem from "../config/judgeSystem.js"
var detect = judgeSystem.detect(navigator.userAgent);
var system;
if(detect.os.ios){
	system = 'ios';
}else{
	system = 'android';
}
Vue.use(Vuex);
const state = {
    rate:'',
    name:'',
    price:'',
    integral:'',
    sid:'',
    goods:'',
    couponId:'',
    color:'',
    system:system
}
export default new Vuex.Store({
    state
});